// 获取加注订单
export const getOrderFilling = `
query($page: Int, $start: String, $end: String,$order_sn: String,$keywords: String,$time: String,$fill_id:Int,$team_id:Int) {
  getOrderFillingList(page: $page, start: $start, end: $end, order_sn: $order_sn,keywords:$keywords,time:$time,fill_id:$fill_id,team_id:$team_id) {
    list {
    order_id
    order_sn
    amount
    price
    money
    createtime
    driver_id
    driver_name
    fill_status
    fill_status_text
    fill_name
    fill_id
    }
    total
    lastpage
    amount
    money
  }
}`;
//获取加注机列表
export const getFillList = `
query{
  getFillList{
    id
    name
    amount
  }
}`;
//获取车友团列表
export const getTeamList = `
query($type:Int){
  getTeamList(type:$type){
    id
    name
    status
  }
}`;
// 获取加注详情
export const getOrderFillingInfo = `
query($order_id:Int){
  getOrderFillingInfo(order_id:$order_id){
    order_id
    order_sn
    amount
    price
    total_amount
    money
    tui_fee
    createtime
    driver_id
    driver_name
    fill_status_text
    fill_name
    fill_id
    order_type
    team_id
    team_name
    cart_code
    address
    order_amount
    pay_list{
        type
        money
        name
    }
  }
}`;
// 获取充值订单
export const getOrderRechargeList = `
query($page: Int, $start: String, $end: String,$keywords: String,$time: String) {
  getOrderRechargeList(page: $page, start: $start, end: $end,keywords:$keywords,time:$time) {
    list {
     order_id
     order_sn
     money
     paytime
     driver_id
     driver_name
    }
    total
    lastpage
    money
  }
}`;
// 获取司机列表
export const getDriverList = `
query($page: Int, $keywords: String) {
  getDriverList(page: $page, keywords: $keywords) {
    list {
      id
      name
      mobile
      avatar
      cart_code
    }
    total
    lastpage
  }
}`;
// 获取司机详情
export const getDriverInfo = `
query($driver_id: Int) {
  getDriverInfo(driver_id: $driver_id) {
    id
    zhitui_id
    zhitui_name
    name
    mobile
    avatar
    nickname
    createtime
    money
    gift
    gem
    zeng
    score
    progit_count
    progit_withdrawal
    progit_freeze
    delivery_name
    staff_level
    staff_code
    cart_code 
  }
}`;
// 获取司机列表
export const getDriverRole = `
query($driver_id: Int) {
  getDriverRole(driver_id: $driver_id) {
    list {
      id
      code
    }
    id
    name
  }
}`;
// 获取可添加的加注机
export const getRoleFill = `
query($driver_id: Int,$role_id:Int) {
  getRoleFill(driver_id: $driver_id,role_id:$role_id) {
    id
    code
  }
}`;
// 获取大客户金额单据
export const getBillQuotaMoney = `
query($page: Int, $start: String, $end: String) {
  getBillQuotaMoney(page: $page, start: $start, end: $end) {
    list {
      id
      name
      money
      remarks
      createtime
      admin_name
    }
    total
    lastpage
  }
}`;
// 获取车友金额单据
export const getBillDriverMoney = `
query($page: Int, $start: String, $end: String) {
  getBillDriverMoney(page: $page, start: $start, end: $end) {
    list {
      id
      name
      money
      remarks
      createtime
      admin_name
    }
    total
    lastpage
  }
}`;
// 获取车友蓝宝石单据
export const getBillDriverGem = `
query($page: Int, $start: String, $end: String) {
  getBillDriverGem(page: $page, start: $start, end: $end) {
    list {
      id
      name
      money
      remarks
      createtime
      admin_name
    }
    total
    lastpage
  }
}`;
// 获取加注机存量变动
export const getBillFillAccount = `
query($page: Int, $start: String, $end: String) {
  getBillFillAccount(page: $page, start: $start, end: $end) {
    list {
      id
      name
      money
      remarks
      createtime
      admin_name
    }
    total
    lastpage
  }
}`;
// 获取服务站存量变动
export const getBillServiceArea = `
query($page: Int, $start: String, $end: String) {
  getBillServiceArea(page: $page, start: $start, end: $end) {
    list {
      id
      name
      amount
      remarks
      createtime
      admin_name
    }
    total
    lastpage
  }
}`;
// 获取大客户列表
export const getCustomersList = `
query($type:String,$keywords:String){
  getCustomersList(type:$type,keywords:$keywords){
    id
    name
    amount
  }
}`;
// 获取大客户申请中列表
export const getCustomersApplyList = `
query{
  getCustomersApplyList{
    id
    name
    page
  }
}`;
// 获取车友团信息
export const getTeamInfo = `
query($team_id: Int){
  getTeamInfo(team_id: $team_id){
    id
    name
    type
    type_text
    admin_id
    status
    is_check
    longitude
    latitude
    address
    image
    fenbo_id
    level_price{
        wechat
        money
        level
    }
    price{
        id
        code
        name
        money
        wechat
    }
    admin_list{
        id
        name
        image
        is_active
    }
  }
}`;
//获取车友团成员列表信息
export const getTeamDriverList = `
query($page: Int, $team_id: Int, $keywords: String) {
  getTeamDriverList(page: $page, team_id: $team_id, keywords: $keywords) {
    list {
      id
      name
      money
      fenbo
      createtime
    }
    total
    lastpage
  }
}`;
//获取车友团资格成员列表信息
export const getTeamSupDriver = `
query($page: Int, $team_id: Int, $keywords: String) {
  getTeamSupDriver(page: $page, team_id: $team_id, keywords: $keywords) {
    list {
      id
      name
      mobile
      driver_id
      avatar
    }
    total
    lastpage
  }
}`;
//获取加注机详情
export const getFill = `
query($fill_id: Int) {
  getFill(fill_id: $fill_id) {
    id
    code
    is_open
    count
    imsi
    type
    longitude
    latitude
    address
    status
    fill_code
    env
    images{
        image
    }
  }
}`;
//获取大客户的加注机
export const getCustomersFlii = `
query($customers_id: Int,$type:String) {
  getCustomersFlii(customers_id: $customers_id,type:$type) {
    id
    code
    is_active
    count
  }
}`;
//获取大客户信息
export const getCustomersInfo = `
query($customers_id: Int) {
  getCustomersInfo(customers_id: $customers_id) {
    id
    name
    quota
    qrcode
    bind
    jiesuan_price
  }
}`;
//获取大客户司机价
export const getCustomersPrice = `
query($customers_id: Int) {
  getCustomersPrice(customers_id: $customers_id) {
    id
    price
  }
}`;
//获取价格组
export const getPriceGroup = `
query($customers_id: Int,$price_group_id:Int) {
  getPriceGroup(customers_id: $customers_id,price_group_id:$price_group_id) {
    id
    price
    fill_name
    price_group_name
  }
}`;
//获取大客户司机
export const getCustomersDriver = `
query($page: Int, $customers_id: Int, $keywords: String) {
  getCustomersDriver(page: $page, customers_id: $customers_id, keywords: $keywords) {
    list {
      id
      name
      driver_id
      mobile
      cart_code
      price_group_name
      createtime
    }
    total
    lastpage
  }
}`;
//获取账户列表
export const getAdminList = `
query($customers_id: Int) {
  getAdminList(customers_id: $customers_id) {
    id
    username
    nickname
  }
}`;
//获取身份对应的列表
export const getShenList = `
query($type: String) {
  getShenList(type: $type) {
    id
    name
    page
  }
}`;
//获取身份对应的列表
export const getShenfen = `
query{
  getShenfen{
    name
    image
    type
  }
}`;
//获去数据统计
export const getIndexData = `
query{
  getIndexData{
    name
    nums
  }
}`;
//获取价格组列表
export const getPriceGroupList = `
query($customers_id: Int){
  getPriceGroupList(customers_id: $customers_id){
    id
    name
  }
}`;
// 获取大客户分拨金额单据
export const getBillFenbo = `
query($page: Int, $start: String, $end: String) {
  getBillFenbo(page: $page, start: $start, end: $end) {
    list {
      id
      name
      money
      remarks
      createtime
      admin_name
    }
    total
    lastpage
  }
}`;
// 获取分拨账户列表
export const getCustomersFenbo = `
query{
  getCustomersFenbo{
    id
    name
    quota
  }
}`;
//分拨账户详情
export const getFenboInfo = `
query($team_id: Int){
  getFenboInfo(team_id: $team_id){
    fenbo_id
    name
    money
    price
  }
}`;
//获取账户列表
export const getAdmins = `
query{
  getAdminList{
    id
    nickname
    mobile
  }
}`;
//分拨账户详情
export const getAdminInfo = `
query($admin_id: Int){
  getAdminInfo(admin_id: $admin_id){
    id
    nickname
    customers_id
    customers_name
    monopoly_id
    monopoly_name
    store_id
    store_name
    shop_id
    shop_name
    mobile
  }
}`;
//商铺列表
export const getShopList = `
query{
  getShopList{
    id
    name
  }
}`;
//店铺列表
export const getStoreList = `
query{
  getStoreList{
    id
    name
  }
}`;
//大客户列表（无分页）
export const getCustMonList = `
query{
  getCustMonList{
    id
    name
  }
}`;
//车队列表
export const getFleetList = `
query($page: Int,$keywords:String){
  getFleetList(page: $page,keywords:$keywords){
    list{
      id
      name
  }
  total
  lastpage
  }
}`;
//车队详情
export const getFleetInfo = `
query($fleet_id: Int){
  getFleetInfo(fleet_id: $fleet_id){
    id
    name
    nickname
    mobile
    money
    total_money
    price
    zhitui_name
  }
}`;
// 获取车队账户变动明细
export const getFleetMoneyLog = `
query($fleet_id:Int,$page: Int, $start: String, $end: String){
  getFleetMoneyLog(fleet_id:$fleet_id,page: $page, start: $start, end: $end){
    list{
      id
      type
      fleet_id
      use_driver_id
      item_id
      money
      before
      after
      memo
      createtime
      driver_name
      driver_mobile
    }
    total
    lastpage
}}
`;
//车队加注机列表
export const getFleetFillList = `
query($fleet_id: Int){
  getFleetFillList(fleet_id: $fleet_id){
    id
    fleet_id
    fill_id
    fill_name
  }
}`;
//车队成员列表
export const getFleetDriverList = `
query($fleet_id: Int,$keywords:String){
  getFleetDriverList(fleet_id: $fleet_id,keywords:$keywords){
    id
    fleet_id
    driver_name
    driver_mobile
    driver_avatar
    driver_id
  }
}`;
//获取车队调整单据列表
export const getBillFleet = `
query($page: Int, $start: String, $end: String) {
  getBillFleet(page: $page, start: $start, end: $end) {
  list{
      id
      name
      money
      remarks
      admin_name
      createtime
  }
  lastpage
  total
  }
}`;
//获取车队列表
export const getFleetListData = `
query{
  getFleetListData{
    id
    name
    money
  }
}`;
//获取配送站调整单据列表
export const getBillDelivery = `
query($page: Int, $start: String, $end: String) {
  getBillDelivery(page: $page, start: $start, end: $end) {
  list{
    id
    name
    money
    remarks
    admin_name
    createtime
  }
  lastpage
  total
  }
}`;
//获取配送站列表
export const getDeliveryList = `
query{
  getDeliveryList{
    id
    name
    money
  }
}`;
//大客户加注订单
export const fill_order_list = `
query($page: Int, $start: String, $end: String,$customers_id:Int) {
  fill_order_list(page: $page, start: $start, end: $end,customers_id:$customers_id) {
  list{
    id
    order_id
    order_sn
    price
    amount
    money
    fill_name
    createtime
    driver_name
    fill_name
    driver_id
    fill_id
  }
  total
  lastpage
  count
  price
  }
}`;
//获取用户身份
export const getDriverRoleList = `
query($driver_id: Int) {
  getDriverRoleList(driver_id: $driver_id) {
    id
    name
    type_text
  }
}`;
//获取用户加注页面
export const getRolePage = `
query($driver_id: Int,$fill_id:Int) {
  getRolePage(driver_id: $driver_id,fill_id:$fill_id) {
    page
  }
}`;
//获取配送站补液员列表
export const getDeliveryDriverList = `
query($delivery_id: Int) {
  getDeliveryDriverList(delivery_id: $delivery_id) {
    id
    name
    mobile
    avatar
    driver_id
  }
}`;
//获取配送站信息
export const getDeliveryInfo = `
query($delivery_id: Int) {
  getDeliveryInfo(delivery_id: $delivery_id) {
    id
    name
    price
    address
    money
    amount
  }
}`;
//配送站账户明细
export const getDeliveryMoneyLog = `
query($page:Int,$start:String,$end:String,$delivery_id:Int){
  getDeliveryMoneyLog(page:$page,start:$start,end:$end,delivery_id:$delivery_id){
    list{
      id
      memo
      money
      driver_name
      createtime
      order_id
  }
  total
  lastpage
  }
}`;
//获取补液机
export const getDeliveryFillList = `
query($delivery_id: Int) {
  getDeliveryFillList(delivery_id: $delivery_id) {
    id
    name
  }
}`;
//获取受液机
export const getDeliveryFillListBybuye = `
query($delivery_id: Int) {
  getDeliveryFillListBybuye(delivery_id: $delivery_id) {
    id
    name
    count
  }
}`;
// 补液记录
export const getDeliveryUreaLog = `
query($page:Int,$to_fill_id:Int,$start:String,$end:String,$delivery_id:Int,$driver_id:Int,$from_fill_id:Int){
  getDeliveryUreaLog(page:$page,to_fill_id:$to_fill_id,start:$start,end:$end,delivery_id:$delivery_id,driver_id:$driver_id,from_fill_id:$from_fill_id){
    list{
      id
      order_sn
      from_fill_name
      to_fill_name
      amount
      money
      price
      createtime
      driver_name
      status
      status_text
    }
    total
    lastpage
}}
`;
//售液记录
export const getDeliveryOrderList = `
query($delivery_id: Int,$start:String,$end:String,$page:Int,$fill_id:Int) {
  getDeliveryOrderList(delivery_id: $delivery_id,start:$start,end:$end,page:$page,fill_id:$fill_id) {
    list{
      id
      order_sn
      fill_name
      amount
      money
      price
      driver_name
      createtime
      status
      status_text
  }
  total
  lastpage
  }
}`;
//我的下级
export const getTeam = `
query($driver_id: Int,$page:Int) {
  getTeam(driver_id: $driver_id,page:$page) {
    list{
      id
      nickname
      avatar
      profit
      mobile
  }
  total
  lastpage
  }
}`;
//我的收益
export const getBonusLog = `
query($driver_id: Int,$page:Int,$type:String) {
  getBonusLog(driver_id: $driver_id,page:$page,type:$type) {
    list{
      id
      type
      driver_id
      driver_name
      after
      money
      memo
      createtime
  }
  total
  lastpage
  }
}`;
//提现记录
export const getWithdrawalLog = `
query($driver_id: Int,$page:Int) {
  getWithdrawalLog(driver_id: $driver_id,page:$page) {
    list{
      id
      order_sn
      driver_id
      driver_name
      money
      createtime
      status_text
      wechat
  }
  total
  lastpage
  }
}`;
//发放记录
export const getRewardLog = `
query($driver_id: Int,$page:Int) {
  getRewardLog(driver_id: $driver_id,page:$page) {
    list{
      id
      type
      driver_name
      money_type
      money
      createtime
  }
  total
  lastpage
  }
}`;
//获取发放奖励类目
export const getRewardList = `
query{
  getRewardList{
    id
    name
    money_type
    money
    max
  }
}`;
//提现详情
export const getProgitInfo = `
query($order_id: Int) {
  getProgitInfo(order_id: $order_id) {
    id
    order_sn
    driver_name
    wechat
    money
    createtime
    updatetime
    image
    des
    status_text
    admin_name
  }
}`;
//获取地推人员列表
export const getDeliveryStaffList = `
query($page: Int,$keywords:String) {
  getDeliveryStaffList(page: $page,keywords:$keywords) {
    list{
      id
      name
      mobile
      avatar
  }
  total
  lastpage
  }
}`;
export const getStaffAll = `
query($keywords:String) {
  getStaffAll(keywords:$keywords) {
      id
      name
      mobile
      avatar
  }
}`;
//工资列表-月
export const getWagesList = `
query($year:String,$staff_id:Int,$page:Int,){
  getWagesList(year:$year,staff_id:$staff_id,page:$page,){
    list{
      id
      title
      money
      month

  }
  total
  lastpage
  }
}`;
// 工资明细-按月
export const getWagesInfo = `
query($month:String,$staff_id:Int){
 getWagesInfo(month:$month,staff_id:$staff_id){
      title
      money
      type
  }
}
`;
// 工资数据
export const getWagesData = `
query($month:String,$staff_id:Int){
 getWagesData(month:$month,staff_id:$staff_id){
      wages
      jiang
      count
  }
}
`;
//当前系数
export const getXishu = `
query($staff_id:Int){
 getXishu(staff_id:$staff_id){
      name
      value
  }
}
`;
//考勤记录
export const getWorkStatusLog = `
query($status:Int,$page:Int){
 getWorkStatusLog(status:$status,page:$page){
     list{
          id
          addtime
          updatetime
          status_text
          admin_name
          des
          type_text
          staff_name
      }
      total
      lastpage
  }
}
`;
//合伙人列表
export const getPatnerList = `
query($keywords:String){
  getPatnerList(keywords:$keywords){
    id
    nickname
    avatar
    mobile
  }
}
`;
// 合伙人数据
export const getPatnerMoney = `
query($staff_id:Int){
 getPatnerMoney(staff_id:$staff_id){
      count
      month
  }
}
`;
// 合伙人车辆
export const getPatnerCart = `
query($staff_id:Int,$page:Int){
 getPatnerCart(staff_id:$staff_id,page:$page){
      list{
          id
          cart_code
          createtime
          money
          image
      }
      total
      lastpage
  }
}
`;
// 合伙人订单
export const getPatnerCartOrder = `
query($staff_id:Int,$page:Int,$start:String,$end:String,$cart_id:Int){
 getPatnerCartOrder(staff_id:$staff_id,page:$page,start:$start,end:$end,cart_id:$cart_id){
      list{
          id
          order_sn
          cart_code
          money
          amount
          price
          shouyi
          createtime
          json{
            name
            value
          }
      }
      total
      lastpage
      shouyi
  }
}
`;
// 合伙人车辆信息
export const getPatnerCartInfo = `
query($cart_id:Int){
  getPatnerCartInfo(cart_id:$cart_id){
    id
    fill_id
    fill_name
    cart_code
    image
    createtime
  }
}
`;
// 店铺列表
export const getStoreLists = `
query($page:Int,$keywords:String){
  getStoreList(page:$page,keywords:$keywords){
  list{
    id
    name
    image
    phone
  }
  total
  lastpage
  }
}
`;
// 店铺详情
export const getStoreInfo = `
query($id:Int){
  getStoreInfo(id:$id){
    id
    name
    image
    phone
  }
}
`;
// 店铺员工列表
export const getStoreUserList = `
query($page:Int,$store_id:Int){
  getStoreUserList(page:$page,store_id:$store_id){
    list{
      id
      name
      mobile
      createtime
      avatar
      driver_id
  }
  lastpage
  total
  }
}
`;
// 店铺福利品列表
export const getHexiaoLog = `
query($page:Int,$store_id:Int,$status:Int){
  getHexiaoLog(page:$page,store_id:$store_id,status:$status){
    list{
      id
      goods_id
      name
      image
      nums
      order_sn
      updatetime
      expirytime
      status
  }
  total
  lastpage
  }
}
`;
// 安澜服务站列表
export const getServiceAreaList = `
query{
  getServiceAreaList{
    id
    name
    address
	amount
  }
}
`;
// 获取等级列表
export const getStaffLevel = `
query{
  getStaffLevel{
    id
    level
    name
  }
}
`;
// 获取编号列表
export const getStaffCode = `
query($status:Int){
  getStaffCode(status:$status){
    id
    code
    status
  }
}
`;
// 历史打卡列表
export const getStaffBanList = `
query($staff_id:Int,$page:Int,$start:String,$end:String){
  getStaffBanList(staff_id:$staff_id,page:$page,start:$start,end:$end){
      list{
        id
        title
        staff_id
        staff_name
      }
      total
      lastpage
  }
}
`;